package net.wwang.open.service;

import net.wwang.open.global.ResponseResult;
import net.wwang.open.pojo.Document;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author WangWei
 * @date 2020/8/11
 */
public interface DocumentService {

    ResponseResult addDocument(String space, String parentId, Document document) throws IOException;

    ResponseResult delDocument(String menuId);

    ResponseResult updateDocument(String menuId, Document document) throws IOException;

    ResponseResult getDocDetail(String menuId);

    void reportDocument(String documentId, String type, HttpServletResponse response) throws IOException;

    Document getDocument(String menuId);

    ResponseResult moveDocument(String documentId,String menuId);

    ResponseResult copyDocument(String menuId, String documentId) throws IOException;

    void reportDocuments(String[] documentIds, String type, HttpServletResponse response,String fileName) throws IOException;
}
